'use strict';
const express = require('express');
const path = require('path');
const app = express();

app.use('/www', express.static(path.resolve(__dirname, 'www')));

app.set('views', path.resolve(__dirname, 'views'));
app.set('view engine', 'ejs');

app.get('/', (req, res) => {
    res.render('index')
});
app.listen(3000, '127.0.0.1', () => {
    console.log('server is running at port 3000');
});